package com.shycloud.mido.music.mapper;

import com.baomidou.mybatisplus.annotation.SqlParser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shycloud.mido.music.domain.MisMyCollectionMusic;
import com.shycloud.mido.music.vo.CoursewareDetailVO;
import com.shycloud.mido.music.vo.MisMusicVO;
import org.apache.ibatis.annotations.Param;

public interface MisMyConllectionMusicMapper extends BaseMapper<MisMyCollectionMusic> {

	/**
	 * 获取自建曲集下的曲目信息
	 *
	 * @param page
	 * @param myCollectionId
	 * @return com.baomidou.mybatisplus.core.metadata.IPage<com.shycloud.mido.music.vo.MisMusicVO>
	 * @author nianhua.jiang
	 * @date 2020/6/18 11:17
	 */
	IPage<MisMusicVO> getMyMusic(@Param("page") Page page, @Param("myCollectionId") Integer myCollectionId, @Param("memberId") String memberId);

	@SqlParser(filter = true)
	IPage<CoursewareDetailVO> getMyMusicForCourseWare(@Param("page") Page page, @Param("collId") Integer id, @Param("teacherId") String teacherId, @Param("studentId") String studentId);
}